
var connectConfig = {
    host: '118.89.65.228',
    port: '10039',
    user: 'root',
    password: 'nyDL%)*#&96ga2135MAzl4a'
};


var Client = require('ftp');

var c = new Client();
c.on('ready', function () {
    console.log('ready');
    c.list(function (err, list) {
        if (err) throw err;
        console.dir(list);
        c.end();
    });
});
// connect to localhost:21 as anonymous
c.connect(connectConfig);